/*
 * @Author: 清酒吖
 * @Date: 2022-01-17 19:30:53
 * @Email:  
 * @LastEditors:  
 * @LastEditTime: 2022-01-20 17:43:33
 * @Description: 
 * @version: x 1.0
 */
import request from '@/utils/request'

// @ 分页+条件查询商品品牌
export function findGoodsBrand(data,pageNum,pageSize) {
    return request({
        url:`/brand/findGoodsBrand?pageNum=${pageNum}&pageSize=${pageSize}`,
        method:'post',
        data
    })

}

// @ 商品品牌修改
export function updateGoodsBrand(data){
    return request({
        url:"/brand/updateGoodsBrand",
        method:'post',
        data
    })
}

// @ 商品品牌添加
export function addGoodsBrand(data) {
    return request({
        url: "/brand/addGoodsBrand",
        method: 'post',
        data
    })
}

// @ 商品品牌删除
export function delGoodsBrand(data) {
    return request({
        url: "/brand/delGoodsBrand",
        method: 'delete',
        data
    })
}

// @ 查询所有商品品牌
export function findBrand() {
    return request({
        url: "/brand/findAllBrand",
        method: 'post',
    })
}
